SharePointPackageReader.TransmitFile Method

Writes a file directly to a web page response. This method should be used whenever possible, as it has much better performance than reading a file into a stream and copying it to the response.

Parent Type: SharePointPackageReader

Namespace: Microsoft.LearningComponents.SharePoint

Assembly: Microsoft.LearningComponents.SharePoint.dll

Syntax
C#

public override void TransmitFile (
string filePath,
HttpResponse response

)

Parameters

filePath

The package-relative path to the file.

response

The response to write to.